Checksum builder Linux #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checksum builder Linux | |
on: | |
schedule: | |
- cron: '*/5 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_PAT || github.token }} | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with : | |
go-version: 'stable' | |
check-latest: true | |
- name: compile | |
run: go build checksum.go | |
- name: Test | |
run: | | |
touch file | |
echo 1 >> file | |
./checksum -c sha256 -f file |