Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Aug 9, 2024
0 parents commit e201cfb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build
on: push
jobs:
build:
runs-on: windows-latest
permissions:
id-token: write
contents: read
attestations: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Compile
run: |
cl .\hello.cpp
.\hello.exe
- name: Attest
uses: actions/attest@v1
with:
subject-path: 'hello.exe'
predicate-type: 'https://in-toto.io/attestation/release/v0.1'
predicate: '{"purl": "git+https://github.com/qstokkink/testghattestations.git@1","releaseId": "1"}'
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Build
retention-days: 2
path: |
*
6 changes: 6 additions & 0 deletions hello.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, world, from Visual C++!" << endl;
}

0 comments on commit e201cfb

Please sign in to comment.